import request from '@/utils/request';

// 列表
export const getList = () => {
  return request.get('/api/model/list');
};

// 新增
export const add = (data:any) => {
  return request.post('/api/model',data);
}; 
// 更新
export const update = (data:any) => {
  return request.put('/api/model',data);
};

// 删除
export const del = (id) => {
  return request.delete(`/api/model/${id}`)
};